from .models import User as Muser


def front_user(request):
    user_id = request.session.get('user_id')
    context = {}
    try:
        user = Muser.objects.get(pk=user_id)
        context['front_user'] = user
        for i in user:
            print(i)
    except:
        pass
    return context

